<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"> 

<h:head>
</h:head>
<h:body> 

	<h:form>
		<h:inputHidden value="#{alunoMBean.aluno.id}" />
		<p:panelGrid columns="2">  
   	 		<f:facet name="header">  
        		Aluno  
    		</f:facet>  
  	
  			<h:outputLabel for="id" value="Id: " />  
    		<h:outputText id="id" value="#{alunoMBean.aluno.id}" />   
  
		  	<h:outputLabel for="alunoName" value="Nome: *" />  
    		<p:inputText id="alunoName" value="#{alunoMBean.aluno.nome}" required="true" label="nome"/>
    		
  			<h:outputLabel for="rg" value="RG: *" />  
    		<p:inputText id="rg" value="#{alunoMBean.aluno.rg}" maxlength="11" size="13"  required="true" label="nome"/>  
  
  			
  			<h:outputLabel for="carga_horaria" value="Carga Horária: *" />  
    		<h:outputText id="carga_horaria" value="#{alunoMBean.aluno.cargaHoraria}" /> 
  			<h:inputHidden value="#{alunoMBean.aluno.cargaHoraria}" />
  		
    		
		    <f:facet name="footer">  
		        <p:commandButton value="Salvar" icon="ui-icon-check" action="#{alunoMBean.salvar}"/>  
		    </f:facet>
		    
		</p:panelGrid>
	</h:form>

</h:body> 
</html>
